import request from '@/utils/request'
import { post } from '@/api/apibase.js'

export function login(data) {
  return post('auth/login', data)
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {

  return post('auth/logout',  {})
}




